import React, { PureComponent, Fragment } from 'react';
import { connect } from 'dva';
import { Button } from 'antd';
import PageHeaderLayout from '../../layouts/PageHeaderLayout';
import ListTable from "./Components/ListTable";


@connect()

export default class PathList extends PureComponent {
  constructor(props) {
    super(props);
  }

  componentWillUnmount(){
    const { dispatch } = this.props;
    dispatch({
      type: `district/appendClearState`,
    })
  }


  render() {
    const { location, match } = this.props;
    const pagesquery = location.query;

    return (

          <PageHeaderLayout >
              <ListTable
                location={location}
                match={match}
                pagesquery={pagesquery}
              />
          </PageHeaderLayout>


    );
  }
}
